#!/usr/bin/env bash
set -euo pipefail

# A workaround that allows a command to run in a
# specific conda environment
cat <<EOF > /opt/conda-run
#!/bin/bash
set -xe

conda run -n \$CONDA_ENVIRONMENT dask-gateway-worker "\$@"
EOF

chmod 755 /opt/conda-run
